function EditMusic(id)
{
    var hr;
    var Page;
    var url = window.location.href;
    if(url.indexOf(".chn") >= 0)
    {
        hr = url.substring(url.lastIndexOf("/")+1,url.length).replace(".chn","").replace("#a","");
        Page = "add,"+hr+"/" + id +".chn";   
    }
    else
    {
        hr = url.substring(url.lastIndexOf("=")+1,url.length).replace("#a","")
        Page = "add,"+hr+"/" + id +".chn";
    }   
    
    window.location = Page;
}

